{extend name="ashippingmanagement/Public/base" /}
{block name="container"}
     <!-- 标题 -->
    <div class="page-heade">
      <h2 class="title_color text-center">{$data['ny']}发运数据导入</h2>
    </div>
    <!-- 标题 -->
    <table class="table table-bordered" style="margin: 0">
      <tr>
        <td><form id="form_id" action="{:url('Ashippingmanagement/upload')}" enctype="multipart/form-data" method="post" target="target_iframe">
            选择导入文件：<input type="file" name="file" class="validate[required]" id="exampleInputFile" style="display: inline-block;"> <span class="lr_5"></span><button class="btn-info btn" type="submit">导入</button>
            </form>
            <iframe name="target_iframe" style="display:none"></iframe>
        </td>
      </tr>
      <tr>
        <td>
          <p class="padding-10">{$data['ny']}共有<span>{$data['sum']['count']}</span>行发运记录，折后销售额合计：<span class="font-bold ObjectNum">{$data['sum']['fyZheMoney']}</span>元</p>
          <p>数据最新更新日期为：<span class="font-bold">{$data['date']['date']}</span> 更新人：<span id="">{$data['date']['operator']}</span></p>
        </td>
      </tr>
      <tr>
        <td>
          <p class="colorRed">温馨提示：如果导入过程中出现未满足指掌云系统要求数据，则整份导入资料都将无法导入，必须按照系统给出的信息提示修改导入资料后再重新导入。</p>
		  <p class="padding-10 font-bold">Excel文件导入注意事项：</p>
          <p>1.必须项：售达方经销商编号、产品编码、数量、发运金额、发运日期、订单号、发运单号、销售人员。</p>
          <p class="padding-10">2.必须填写数字：数量、发运金额。</p>
          <p>3.发运月份只能为一个月，并且要与选择的导入月份保持一致。</p>
          <p class="padding-10">4.销售人员必须是指掌云系统中已存在的职员名称。</p>
          <p><span class="font-bold">Excel文件导入格式：</span><a href="{:url('Ashippingmanagement/downFile')}?path=/static/fy/file.xls">产品发运数据导入表格格式.xls</a><span class="colorRed">注：Excel中标记为红色底色的列为必填项。</span></p>
        </td>
      </tr>
    </table>
       <script>
           $('#form_id').validationEngine('attach', {
               promptPosition: 'bottomRight'
           });
          $(document).ready(function(){
               var $ObjectNum =$(".ObjectNum");
             toNum($ObjectNum);
          })
       </script>
{/block}